﻿using System.Collections.ObjectModel;
using System.Xml.Serialization;

namespace ElectronicCommerce.Framework.Web.Configuration.Resource
{
    public class Css
    {
        [XmlAttribute("name")]
        public string Name { get; set; }

        [XmlAttribute("fileName")]
        public string FileName { get; set; }
    }

    public class CssCollection : KeyedCollection<string, Css>
    {
        protected override string GetKeyForItem(Css item)
        {
            return item.Name.ToUpper();
        }
    }
}
